<!-- Web Upload to check user name, password PHP File -->
<!-- Reveions History ...
	Rev 1.00 at 2015/06/07 by Max Yin:
		1. First time create
	Rev 1.01 at 2015/07/08 by Max Yin:
		1. 由標楷體, 改成新細明體
-->
<html>
	<body background="pic/background_06.gif">
	<head>
		<font face="新細明體,time new roman,Arial">
		<meta charset="UTF-8">
	</head>
	<body>
		<center>
			<?php
				require_once('class_package/common.php');
				$login_useramne		= $_POST['accout_username'];
				$login_password		= $_POST['accout_password'];
				
				// To check user name & password limit ...
				if ( $login_useramne == '' || $login_password == '' ) {
					echo "<script>alert('输入的栏位中, 不能为空值, 请重新输入...');history.go(-1);</script>";
					exit();
				}
				
				// To check MySQL exist the account user name and password or not?
				$get_query_result = account_search_result($login_useramne);
				if ( !is_array($get_query_result) ) {
					echo "<script>alert('查无此帐号/密码? 请检查后,重新输入...');history.go(-1);</script>";
					exit();
				}
				
				$get_query_password = AnalyzeMySqlStr($get_query_result,'password');
				if ( $login_password != $get_query_password ) {
					echo "<script>alert('帐号/密码错误! 请重新输入...');history.go(-1);</script>";
					exit();
				}
				
				// 跳转 html 到 ...
				$web_ip = html::WebIP;
				$url="http://localhost:881/webdl/webdl_pn_search.html";
				Header("HTTP/1.1 303 See Other"); 
				Header("Location: $url");
				exit();
			?>
		</center>
	</body>
</html>


